#include "movfilebuffer.h"
#include "movinteral.h"
#include "movpara.h"
#include "movreader.h"
#include "avctomp4.h"
#include "g711toaac.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>

int main(int argc ,int **argv)
{
    if(argc < 3)
    {
        perror("para number is error!");
        // printf("please input  : ./avc_mp4  inputfilename  outputfilename\n");
        printf("please input  : ./aac_mp4  inputfilename  outputfilename\n");
        return 0;
    }
    char *input = argv[1];
    char *output = argv[2];
    // mov_writer_h264(input,1920,1080,output);  /*  1280   720 ------- 1920  1080 */
    // mov_write_aac(input,output);  
    g711_2_aac_test(input,output);   // 按照文件转码
    g711_2_aac_frame_test(input,"output_frame.aac"); // 按照帧转码
    printf("format is ok!\n");
    return 0;
}



